//
//  UITableView+SY.m
//  SanYiTeaching
//
//  Created by 郑浩然 on 2019/4/20.
//  Copyright © 2019年 SanYi. All rights reserved.
//

#import "UITableView+SY.h"

@implementation UITableView (SY)
- (void)registerCellWithClassNames:(NSArray *)classNames {
    for (NSString *className in classNames) {
        [self registerClass:NSClassFromString(className) forCellReuseIdentifier:className];
    }
}
//注册nib cell
- (void)registerCellWithNIbNames:(NSArray *)nibNames {
    for (NSString *nibName in nibNames) {
        [self registerNib:[UINib nibWithNibName:nibName bundle:nil] forCellReuseIdentifier:nibName];
    }
}
@end
